<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', 'IndexController@index');

Route::get('register','Auth\AuthController@getRegister');
Route::post('register',['middleware'=>'App\Http\MiddleWare\EmailMiddleware',
	'uses'=>'Auth\AuthController@PostRegister']);
Route::get('logout','Auth\AuthController@getLogout');
Route::get('auth/login','Auth\AuthController@getLogin');
Route::post('auth/login','Auth\AuthController@postLogin');
Route::get('jie','JieController@getJie');
Route::post('jie','JieController@postJie');
Route::get('prolist','JieController@getpro');
Route::get('check/{pid}','JieController@check');
Route::post('check/{pid}','JieController@postcheck');

Route::get('touzi/{pid}','JieController@touzi');
Route::post('touzi/{pid}','JieController@posttz');

Route::get('run/{uid}','GrowController@run');

Route::get('myzd/{uid}','JieController@myzd');
Route::get('mytz/{uid}','JieController@mytz');
Route::get('mysy/{uid}','JieController@mysy');

Route::post('pay', 'JieController@pay');

Route::get('sms/{mobile}','JieController@sendsms');
Route::get('checksm/{code}','JieController@checksm');